package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

/**
 * @author mwj
 * @date 2021/11/24
 * @TIME:15:21
 */
public interface DishService extends IService<Dish> {
    void addDish(DishDto dishDto);

    Page<DishDto> findByPage(Integer page, Integer pageSize, String name);

    DishDto findById(Long id);

    void updateDishDto(DishDto dishDto);

    List<DishDto> findDishesByCategoryId(Long categoryId);

    R deleteByIds(Long[] ids);

    void statusByIds(Integer dishState, Long[] ids);
}
